From a8d8872c0c7b9516a620bc6df7a6bdf9e0488363 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 4 Oct 1999 02:59:52 +0000 Subject: [PATCH] Started compatibility header for renames. Sun Oct 3 23:09:06 1999 Owen Taylor * gdk/gdkcompat.h: Started compatibility header for renames. --- gdk/gdkcompat.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 gdk/gdkcompat.h diff --git a/gdk/gdkcompat.h b/gdk/gdkcompat.h new file mode 100644 index 0000000000..04da2147cc --- /dev/null +++ b/gdk/gdkcompat.h @@ -0,0 +1,34 @@ +#ifndef __GDK_COMPAT_H__ +#define __GDK_COMPAT_H__ + + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* use -DGDK_DISABLE_COMPAT_H to compile your code and asure that it + * works with future GTK+ versions as well. + */ +#ifndef GDK_DISABLE_COMPAT_H + +#define GdkWindowType GdkDrawableType + +#define gdk_window_get_size gdk_drawable_get_size +#define gdk_window_get_type gdk_drawable_get_type +#define gdk_window_get_colormap gdk_drawable_get_colormap +#define gdk_window_set_colormap gdk_drawable_set_colormap +#define gdk_window_get_visual gdk_drawable_get_visual + +#define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) \ + gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height) + +#define GDK_WINDOW_PIXMAP GDK_DRAWABLE_PIXMAP + +#endif /* GDK_DISABLE_COMPAT_H */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GDK_COMPAT_H__ */ + -- 2.30.2